﻿<UserControl
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:UserControls="clr-namespace:JuCloudy.Platform.UserControls;assembly=JuCloudy.Platform.UserControls"
    xmlns:local="clr-namespace:JuCloudy.App.Toursim.Root.ctrls" xmlns:Root="clr-namespace:JuCloudy.App.Toursim.Root" xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk" x:Class="JuCloudy.App.Toursim.Root.ctrls.Create"
    mc:Ignorable="d"
    d:DesignHeight="1200" d:DesignWidth="1024">

    <UserControl.Resources>
        <ResourceDictionary Source="/JuCloudy.App.Toursim.Root;component/Assets/Skins.xaml"/>
    </UserControl.Resources>

    <Grid x:Name="LayoutRoot" Background="White">
        <Grid x:Name="grid_Title" VerticalAlignment="Top" Height="25">
            <TextBlock HorizontalAlignment="Center" TextWrapping="Wrap" Text="新建" VerticalAlignment="Center" FontSize="12" Foreground="#FF4C4C4C"/>
        </Grid>
        <Grid x:Name="MainRoot">
            <ScrollViewer Margin="5,5,0,35" VerticalScrollBarVisibility="Auto" Padding="0" BorderThickness="0" BorderBrush="{x:Null}">
                <StackPanel x:Name="CoverPanel"  Margin="0,20,0,150">
                    <TextBlock Text="封面" FontSize="15" Foreground="Gray" FontWeight="Thin" FontStyle="Italic"  FontFamily="Microsoft YaHei"/>
                    <StackPanel VerticalAlignment="Top">
                        <Grid Height="30" Margin="0,10,0,5">
                            <TextBlock Text="出发地点" FontSize="14" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="35,0,0,0"/>
                            <UserControls:jTextbox x:Name="txt_Departure" Style="{StaticResource RibbonTextbox}" Margin="100,0,35,0" BorderThickness="0,0,0,1" Background="{x:Null}"/>
                        </Grid>
                        <Grid Height="30" Margin="0,5">
                            <TextBlock Text="目的地点" FontSize="14" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="35,0,0,0"/>
                            <UserControls:jTextbox x:Name="txt_Destination" Style="{StaticResource RibbonTextbox}" Margin="100,0,35,0"  BorderThickness="0,0,0,1"/>
                        </Grid>
                        <Grid Height="30" Margin="0,5">
                            <TextBlock Text="行程天数" FontSize="14" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="35,0,0,0"/>
                            <UserControls:jTextbox x:Name="txt_Durain" Style="{StaticResource RibbonTextbox}" Margin="100,0,35,0"  BorderThickness="0,0,0,1"/>
                            <TextBlock Text="行程天数最多30天" VerticalAlignment="Top" FontFamily="Microsoft YaHei" FontStyle="Italic" Foreground="#FFABABAB" Margin="150,0,5,0"/>
                        </Grid>
                        <Grid Height="30" Margin="0,5">
                            <TextBlock Text="交通方式" FontSize="14" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="35,0,0,0"/>
                            <Border VerticalAlignment="Top" Height="30" BorderBrush="#FFABABAB" BorderThickness="0,0,0,1" Margin="100,0,35,0">
                                <StackPanel Orientation="Horizontal">
                                    <TextBlock Text="去程交通" VerticalAlignment="Top" FontFamily="Microsoft YaHei" FontStyle="Italic" Foreground="#FFABABAB" Margin="5,0"/>
                                    <UserControls:jCombox x:Name="com_GoTraffic" Style="{StaticResource RibbonCombox}" Margin="3,0,0,0" Width="110" BorderThickness="0" Height="25" BorderBrush="{x:Null}">
                                        <ComboBoxItem Content="不含"/>
                                        <ComboBoxItem Content="旅游巴士"/>
                                        <ComboBoxItem Content="火车"/>
                                        <ComboBoxItem Content="动车/高铁"/>
                                        <ComboBoxItem Content="轮船"/>
                                        <ComboBoxItem Content="飞机"/>
                                    </UserControls:jCombox>
                                    <UserControls:jTextbox x:Name="txt_GoTraffic" Style="{StaticResource RibbonTextbox}" Text="" VerticalAlignment="Center" FontSize="13" Padding="0" BorderThickness="0" Margin="-130,0,0,0" Width="80" Background="White" BorderBrush="{x:Null}"/>
                                    <TextBlock Text="回程交通" VerticalAlignment="Top" FontFamily="Microsoft YaHei" FontStyle="Italic" Foreground="#FFABABAB" Margin="5,0"/>
                                    <UserControls:jCombox x:Name="com_ReTraffic" Style="{StaticResource RibbonCombox}" Margin="3,0,0,0" Width="110" BorderThickness="0" Height="25" BorderBrush="{x:Null}">
                                        <ComboBoxItem Content="不含"/>
                                        <ComboBoxItem Content="旅游巴士"/>
                                        <ComboBoxItem Content="火车"/>
                                        <ComboBoxItem Content="动车/高铁"/>
                                        <ComboBoxItem Content="轮船"/>
                                        <ComboBoxItem Content="飞机"/>
                                    </UserControls:jCombox>
                                    <UserControls:jTextbox x:Name="txt_ReTraffic" Style="{StaticResource RibbonTextbox}" Text="" VerticalAlignment="Center" FontSize="13" Padding="0" BorderThickness="0" Margin="-130,0,0,0" Width="80" Background="White" BorderBrush="{x:Null}"/>

                                </StackPanel>
                            </Border>
                        </Grid>
                        <Grid Height="30" Margin="0,5">
                            <TextBlock Text="线路类型" FontSize="14" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="35,0,0,0"/>
                            <Border VerticalAlignment="Top" Height="30" BorderBrush="#FFABABAB" BorderThickness="0,0,0,1" Margin="100,0,35,0">
                                <StackPanel x:Name="ProductTypePanel" Orientation="Horizontal">
                                    <UserControls:jRadioButton Content="本地游" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="0,0,15,0"/>
                                    <UserControls:jRadioButton Content="周边游" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="0,0,15,0"/>
                                    <UserControls:jRadioButton Content="国内游" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="0,0,15,0"/>
                                    <UserControls:jRadioButton Content="港澳台" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="0,0,15,0"/>
                                    <UserControls:jRadioButton Content="东南亚" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="0,0,15,0"/>
                                    <UserControls:jRadioButton Content="日韩" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="0,0,15,0"/>
                                    <UserControls:jRadioButton Content="欧美澳新" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="0,0,15,0"/>
                                    <UserControls:jRadioButton Content="海岛游" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="0,0,15,0"/>
                                    <UserControls:jRadioButton Content="其他出境游" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="0,0,15,0"/>
                                </StackPanel>
                            </Border>
                        </Grid>
                        <Grid Height="30" Margin="0,5">
                            <TextBlock Text="行程类型" FontSize="14" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="35,0,0,0"/>
                            <Border VerticalAlignment="Top" Height="30" BorderBrush="#FFABABAB" BorderThickness="0,0,0,1" Margin="100,0,35,0">
                                <StackPanel x:Name="PlanTypePanel" Orientation="Horizontal">
                                    <UserControls:jRadioButton Content="跟团游" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="0,0,15,0"/>
                                    <UserControls:jRadioButton Content="自由行" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="0,0,15,0"/>
                                    <UserControls:jRadioButton Content="自驾游" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="0,0,15,0"/>
                                </StackPanel>
                            </Border>
                        </Grid>
                        <Grid Height="30" Margin="0,5">
                            <TextBlock Text="合作商" FontSize="14" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="35,0,0,0"/>
                            <Border VerticalAlignment="Top" Height="30" BorderBrush="#FFABABAB" BorderThickness="0,0,0,1" Margin="100,0,35,0">
                                <Grid HorizontalAlignment="Left">
                                    <UserControls:jCombox x:Name="com_Partner" Style="{StaticResource RibbonCombox}" Margin="3,0,0,0" Width="200" BorderThickness="0" Height="25" BorderBrush="{x:Null}"/>
                                    <UserControls:jTextbox x:Name="txt_Partner" Style="{StaticResource RibbonTextbox}" Text="" VerticalAlignment="Center" FontSize="13" Padding="0" BorderThickness="0" Margin="-15,0,0,0" Width="175" Background="White"/>
                                </Grid>
                            </Border>
                        </Grid>
                        <Grid Height="30" Margin="0,5">
                            <UserControls:jButton x:Name="btn_next" Content="保存，下一步" Style="{StaticResource RibbonButton}" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="35,0,0,0" Height="20" Width="80" Click="btn_next_Click"/>
                        </Grid>
                    </StackPanel>

                    <TextBlock x:Name="block_maincontent" Text="正文" FontSize="15" Foreground="Gray" FontWeight="Thin" FontStyle="Italic"  FontFamily="Microsoft YaHei" Margin="0,30,0,0" Visibility="Visible"/>
                    <StackPanel x:Name="maincontentpanel" VerticalAlignment="Top" Visibility="Visible">
                        <Grid Height="60" Margin="100,10,100,50">
                            <TextBlock Text="标题" FontSize="20" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="35,0,0,0"/>
                            <UserControls:jTextbox x:Name="txt_Title" Style="{StaticResource RibbonTextbox}" Margin="100,0,35,0" BorderThickness="0,0,0,1" Background="{x:Null}" FontSize="20" Height="45" VerticalAlignment="Bottom"/>
                            <TextBlock Text="标题最多27字" VerticalAlignment="Top" FontFamily="Microsoft YaHei" FontStyle="Italic" Foreground="#FFABABAB" Margin="100,0,5,0"/>
                            <TextBlock x:Name="txt_TitleLength" Text="" VerticalAlignment="Top" FontFamily="Microsoft YaHei" FontStyle="Italic" Foreground="#FFABABAB" Margin="175,0,5,0"/>
                        </Grid>
                        <Grid Height="30" Margin="0,5">
                            <TextBlock Text="有效期" FontSize="14" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="35,0,0,0"/>
                            <Border VerticalAlignment="Top" Height="30" BorderBrush="#FFABABAB" BorderThickness="0,0,0,1" Margin="100,0,35,0">
                                <StackPanel Orientation="Horizontal">
                                    <TextBlock Text="生效日期" VerticalAlignment="Top" FontFamily="Microsoft YaHei" FontStyle="Italic" Foreground="#FFABABAB" Margin="5,0"/>
                                    <sdk:DatePicker x:Name="txt_StartDate" HorizontalAlignment="Left" Height="23" VerticalAlignment="Top" Width="180" BorderThickness="0" BorderBrush="{x:Null}"/>
                                    <TextBlock Text="失效日期" VerticalAlignment="Top" FontFamily="Microsoft YaHei" FontStyle="Italic" Foreground="#FFABABAB" Margin="15,0,5,0"/>
                                    <sdk:DatePicker x:Name="txt_EndDate" HorizontalAlignment="Left" Height="23" VerticalAlignment="Top" Width="180" BorderThickness="0" BorderBrush="{x:Null}"/>
                                </StackPanel>
                            </Border>
                        </Grid>
                        <Grid Height="30" Margin="0,5">
                            <TextBlock Text="发团日期" FontSize="14" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="35,0,0,0"/>
                            <Border VerticalAlignment="Top" Height="30" BorderBrush="#FFABABAB" BorderThickness="0,0,0,1" Margin="100,0,35,0">
                                <StackPanel Orientation="Horizontal">
                                    <Grid HorizontalAlignment="Left">
                                        <UserControls:jCombox x:Name="com_GoDate" Style="{StaticResource RibbonCombox}" Margin="3,0,0,0" Width="200" BorderThickness="0" Height="25" BorderBrush="{x:Null}">
                                            <ComboBoxItem Content="天天发团"/>
                                            <ComboBoxItem Content="每周五发团"/>
                                            <ComboBoxItem Content="每周六发团"/>
                                            <ComboBoxItem Content="定期发团"/>
                                        </UserControls:jCombox>
                                        <UserControls:jTextbox x:Name="txt_GoDate" Style="{StaticResource RibbonTextbox}" Text="" VerticalAlignment="Center" FontSize="13" Padding="0" BorderThickness="0" Margin="-15,0,0,0" Width="175" Background="White"/>
                                    </Grid>
                                </StackPanel>
                            </Border>
                        </Grid>
                        <Grid Height="30" Margin="0,5">
                            <TextBlock Text="成团方式" FontSize="14" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="35,0,0,0"/>
                            <Border VerticalAlignment="Top" Height="30" BorderBrush="#FFABABAB" BorderThickness="0,0,0,1" Margin="100,0,35,0">
                                <StackPanel Orientation="Horizontal">
                                    <Grid HorizontalAlignment="Left">
                                        <UserControls:jCombox x:Name="com_GroupType" Style="{StaticResource RibbonCombox}" Margin="3,0,0,0" Width="200" BorderThickness="0" Height="25" BorderBrush="{x:Null}">
                                            <ComboBoxItem Content="散客拼团"/>
                                            <ComboBoxItem Content="当地成团"/>
                                            <ComboBoxItem Content="地区成团"/>
                                            <ComboBoxItem Content="独立成团"/>
                                            <ComboBoxItem Content="非团队"/>
                                        </UserControls:jCombox>
                                        <UserControls:jTextbox x:Name="txt_GroupType" Style="{StaticResource RibbonTextbox}" Text="" VerticalAlignment="Center" FontSize="13" Padding="0" BorderThickness="0" Margin="-15,0,0,0" Width="175" Background="White"/>
                                    </Grid>
                                </StackPanel>
                            </Border>
                        </Grid>
                        <Grid Height="30" Margin="0,5">
                            <TextBlock Text="价格信息" FontSize="14" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="35,0,0,0"/>
                            <Border VerticalAlignment="Top" Height="30" BorderBrush="#FFABABAB" BorderThickness="0,0,0,1" Margin="100,0,35,0">
                                <StackPanel Orientation="Horizontal">
                                    <TextBlock Text="成人" VerticalAlignment="Center" FontSize="14"/>
                                    <TextBlock Text="结算价" VerticalAlignment="Top" FontFamily="Microsoft YaHei" FontStyle="Italic" Foreground="#FFABABAB" Margin="5,0"/>
                                    <UserControls:jTextbox x:Name="txt_ACPrice" Style="{StaticResource RibbonTextbox}" BorderThickness="0" Width="80"/>
                                    <TextBlock Text="销售价" VerticalAlignment="Top" FontFamily="Microsoft YaHei" FontStyle="Italic" Foreground="#FFABABAB" Margin="5,0"/>
                                    <UserControls:jTextbox x:Name="txt_ASPrice" Style="{StaticResource RibbonTextbox}" BorderThickness="0" Width="80"/>
                                    <TextBlock Text="儿童" VerticalAlignment="Center" FontSize="14"/>
                                    <TextBlock Text="结算价" VerticalAlignment="Top" FontFamily="Microsoft YaHei" FontStyle="Italic" Foreground="#FFABABAB" Margin="5,0"/>
                                    <UserControls:jTextbox x:Name="txt_CCPrice" Style="{StaticResource RibbonTextbox}" BorderThickness="0" Width="80"/>
                                    <TextBlock Text="销售价" VerticalAlignment="Top" FontFamily="Microsoft YaHei" FontStyle="Italic" Foreground="#FFABABAB" Margin="5,0"/>
                                    <UserControls:jTextbox x:Name="txt_CSPrice" Style="{StaticResource RibbonTextbox}" BorderThickness="0" Width="80"/>
                                </StackPanel>
                            </Border>
                        </Grid>
                        <Grid Height="105" Margin="0,5">
                            <TextBlock Text="费用说明" FontSize="14" VerticalAlignment="Top" HorizontalAlignment="Left" Margin="35,0,0,0"/>
                            <UserControls:jTextbox x:Name="txt_Explan" Style="{StaticResource RibbonTextbox}" Margin="100,0,35,0"  BorderThickness="0,0,0,1" AcceptsReturn="True" TextWrapping="Wrap" Background="{x:Null}" Height="90" VerticalAlignment="Bottom"/>
                            <TextBlock Text="费用说明最多200字" VerticalAlignment="Top" FontFamily="Microsoft YaHei" FontStyle="Italic" Foreground="#FFABABAB" Margin="100,0,5,0"/>
                            <TextBlock x:Name="txt_explanLength" Text="" VerticalAlignment="Top" FontFamily="Microsoft YaHei" FontStyle="Italic" Foreground="#FFABABAB" Margin="200,0,5,0"/>

                        </Grid>
                    </StackPanel>

                    <TextBlock x:Name="block_plans" Text="详细行程" FontSize="15" Foreground="Gray" FontWeight="Thin" FontStyle="Italic" FontFamily="Microsoft YaHei" Margin="0,30,0,0" Visibility="Visible"/>
                    <StackPanel x:Name="planpanel" VerticalAlignment="Top" Visibility="Visible"/>
                    <StackPanel x:Name="planctrlpanel" Orientation="Horizontal" HorizontalAlignment="Right" Visibility="Visible">
                        <HyperlinkButton x:Name="btn_AddPerDayPlan" Content="增加一天行程" HorizontalAlignment="Right" Margin="0,0,35,0" Click="btn_AddPerDayPlan_Click"/>
                        <HyperlinkButton x:Name="btn_DelPerDayPlan" Content="删除最后一天行程" HorizontalAlignment="Right" Margin="0,0,35,0" Click="btn_DelPerDayPlan_Click"/>
                    </StackPanel>
                    <Grid Height="30" Margin="0,5">
                        <UserControls:jButton x:Name="btn_Submit" Content="保存并发布" Style="{StaticResource RibbonButton}" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="35,0,0,0" Height="20" Width="80" Click="btn_Submit_Click"/>
                    </Grid>
                </StackPanel>
            </ScrollViewer>
        </Grid>

       

    </Grid>
</UserControl>
